/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.evelsoft.jpa.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author wojtek
 */
@Entity
@Table(name="onto")
public class Item implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	@Column(name="name")
	private String ontoName;
	@Column(name="count")
	private int count;

	public Item(){

	}

	public Item(Integer id){
		this.id=id;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getOntoName() {
		return ontoName;
	}

	public void setOntoName(String ontoName) {
		this.ontoName = ontoName;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}
}
